export interface LoginData {
  username: string
  password: string
}
export interface RegisterData {
  username: string
  password: string
  rePassword: string
  captcha: string
}

export interface ResetPasswordData {
  username: string
  password: string
  captcha: string
}

export enum OperationType {
  register = "register",
  forgetPassword = "forgetPassword"
}
export interface CaptchaData {
  email: string
  operationType: OperationType
}
export interface LoginRes {
  token: string
}

//用户信息
export interface UserInfo {
  username: string
  password?: string
  name: string
  roles: string[]
  desc: string //备注
}
